package org.trackcore.utils;

import java.util.Map;

public class ValidateUtils {

    public static void checkRequiredFields(Map<String, Object> map, String... fields) {
        for (String field : fields) {
            if (!map.containsKey(field)) {
                throw new IllegalArgumentException("缺少必要字段: " + field);
            }
        }
    }
}
